Skip to content

Conversation

@macropay-solutions
Copy link
Owner

@macropay-solutions macropay-solutions commented Nov 1, 2025

This will reduce the number of calls to getDirty during save and also the sync/merge of casted attributes into objects when getAttributeFromArray is called.

Also it will prevent changes in created,updated,saved events from getting into $original without being saved into DB

laravel/framework#57627 + https://github.com/macropay-solutions/maravel-framework/pull/21/files

lockUpdates will be a new a new feature as a consequence to this improvement.

@macropay-solutions
Copy link
Owner Author

macropay-solutions commented Nov 4, 2025

Deployed these changes to our demo page laravel-crud-wizard.com/laravel-12-free/laravel-lumen-crud-wizard/decorated#operations

Pantea Marius-ciclistu added 9 commits November 4, 2025 20:56
$model = User::query()->firstOrFail();
$carbon = $model->date_time_carbon_casted;
$carbon->addDay();
echo $model->col_with_get_mutator_that_depends_on_date_time_carbon_casted;
// would print 'value date time' without the added day before this commit
$model = User::query()->firstOrFail();
$carbon = $model->date_time_carbon_casted;
$carbon->addDay();
echo $model->col_with_get_mutator_that_depends_on_date_time_carbon_casted;
// would print 'value date time' without the added day before this commit
…d that got into $original but not in db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants